package com.open.capacity.common.model;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

@Data
@TableName("SignReport")
@EqualsAndHashCode(callSuper=true)
public class SignReport extends Model<SignReport> implements Serializable {
    @TableId(value = "id",type = IdType.AUTO)
    @JsonSerialize(using= ToStringSerializer.class)
    private Integer id;

    private Long userId;

    @Excel(name = "用户昵称", height = 20, width = 30, isImportField = "true_st")
    private String nickName;
    @Excel(name = "签到次数", height = 20, width = 30, isImportField = "true_st")
    private Integer signinCount;
    @Excel(name = "签退次数", height = 20, width = 30, isImportField = "true_st")
    private Integer sigoutCount;
    @Excel(name = "未签到次数", height = 20, width = 30, isImportField = "true_st")
    private Integer unsigninCount;
    @Excel(name = "未签退次数", height = 20, width = 30, isImportField = "true_st")
    private Integer unsigoutCount;
    @Excel(name = "已到次数", height = 20, width = 30, isImportField = "true_st")
    private Integer istate1Count;
    @Excel(name = "迟到次数", height = 20, width = 30, isImportField = "true_st")
    private Integer istate2Count;
    @Excel(name = "已退次数", height = 20, width = 30, isImportField = "true_st")
    private Integer ostate1Count;
    @Excel(name = "早退次数", height = 20, width = 30, isImportField = "true_st")
    private Integer ostate2Count;
    //请假天数
    private Integer istate5Count;
    //出勤率
    private Integer attendRate;
    //加班率
    private Integer workRate;
}
